<?php

namespace app\common\model\product\game;

use app\common\Player\Amq;
use app\common\Player\C3;
use app\common\Player\K3;
use app\common\Player\Kl10f;
use app\common\Player\Kl8;
use app\common\Player\Lhc;
use app\common\Player\Pc28;
use app\common\Player\Pk10;
use app\common\Player\Pk10New;
use app\common\Player\Ssc;
use app\common\Player\Twq;
use app\common\Player\X5;
use app\common\Player\Xgq;

class Player
{
    public static function get($type)
    {
        $returnSet = [];
        try{
            $returnSet = self::$type();
        } catch (\Error $e) {

        }
        return $returnSet;
    }

    public static function pk10New()
    {
        return [
            'q5zxfs' => [
                'title' => lang('1-5'),
                'games' => Pk10::getGames('q5zxfs')
            ],
            'h5zxfs' => [
                'title' => lang('6-10'),
                'games' => Pk10::getGames('h5zxfs')
            ],
            'face2' => [
                'title' => lang('两面'),
                'games' => Pk10::getGames('face2')
            ],
            'sum' => [
                'title' => lang('冠亚和'),
                'games' => Pk10::getGames('sum')
            ],
        ];
    }

    public static function pk10()
    {
        return [
            'ball1' => [
                'title' => lang('冠军'),
                'games' => Pk10New::getGames('ball1')
            ],
            'ball2' => [
                'title' => lang('亚军'),
                'games' => Pk10New::getGames('ball2')
            ],
            'ball3' => [
                'title' => lang('季军'),
                'games' => Pk10New::getGames('ball3')
            ],
            'ball4' => [
                'title' => lang('第四名'),
                'games' => Pk10New::getGames('ball4')
            ],
            'ball5' => [
                'title' => lang('第五名'),
                'games' => Pk10New::getGames('ball5')
            ],
            'ball6' => [
                'title' => lang('第六名'),
                'games' => Pk10New::getGames('ball6')
            ],
            'ball7' => [
                'title' => lang('第七名'),
                'games' => Pk10New::getGames('ball7')
            ],
            'ball8' => [
                'title' => lang('第八名'),
                'games' => Pk10New::getGames('ball8')
            ],
            'ball9' => [
                'title' => lang('第九名'),
                'games' => Pk10New::getGames('ball9')
            ],
            'ball10' => [
                'title' => lang('第十名'),
                'games' => Pk10New::getGames('ball10')
            ],
            'lh' => [
                'title' => lang('龙虎'),
                'games' => Pk10New::getGames('lh')
            ],
            'sum' => [
                'title' => lang('冠亚和值'),
                'games' => Pk10New::getGames('sum')
            ],
            'face2' => [
                'title' => lang('大小单双'),
                'games' => Pk10New::getGames('face2')
            ],
        ];
    }

    public static function pc28()
    {
        return [
            'position' => [
                'title' => lang('定位球'),
                'games' => Pc28::getGames('position'),
            ],
            'special' => [
                'title' => lang('特码'),
                'games' => Pc28::getGames('special'),
            ],
        ];
    }

    public static function kl10f()
    {
        return [
            'face2' => [
                'title' => lang('两面'),
                'games' => Kl10f::getGames('face2'),
            ],
            'ball1' => [
                'title' => lang('第一球'),
                'games' => Kl10f::getGames('ball1'),
            ],
            'ball2' => [
                'title' => lang('第二球'),
                'games' => Kl10f::getGames('ball2'),
            ],
            'ball3' => [
                'title' => lang('第三球'),
                'games' => Kl10f::getGames('ball3'),
            ],
            'ball4' => [
                'title' => lang('第四球'),
                'games' => Kl10f::getGames('ball4'),
            ]
            ,'ball5' => [
                'title' => lang('第五球'),
                'games' => Kl10f::getGames('ball5'),
            ],
            'ball6' => [
                'title' => lang('第六球'),
                'games' => Kl10f::getGames('ball6'),
            ],
            'ball7' => [
                'title' => lang('第七球'),
                'games' => Kl10f::getGames('ball7'),
            ],
            'ball8' => [
                'title' => lang('第八球'),
                'games' => Kl10f::getGames('ball8'),
            ],
        ];
    }


    public static function c3()
    {
        return [
            'ct' => [
                'title' => lang('三色'),
                'games' => C3::getGames('ct'),
            ],
            // 'ws' => [
            //     'title' => lang('围骰'),
            //     'games' => K3::getGames('ws'),
            // ],
            // 'point' => [
            //     'title' => lang('点数'),
            //     'games' => K3::getGames('point'),
            // ],
            // 'long' => [
            //     'title' => lang('长牌'),
            //     'games' => K3::getGames('long'),
            // ],
            // 'short' => [
            //     'title' => lang('短牌'),
            //     'games' => K3::getGames('short'),
            // ],
            // 'face2' => [
            //     'title' => lang('两面'),
            //     'games' => K3::getGames('face2'),
            // ],
        ];
    }

    public static function k3()
    {
        return [
            'three' => [
                'title' => lang('三军'),
                'games' => K3::getGames('three'),
            ],
            'ws' => [
                'title' => lang('围骰'),
                'games' => K3::getGames('ws'),
            ],
            'point' => [
                'title' => lang('点数'),
                'games' => K3::getGames('point'),
            ],
            'long' => [
                'title' => lang('长牌'),
                'games' => K3::getGames('long'),
            ],
            'short' => [
                'title' => lang('短牌'),
                'games' => K3::getGames('short'),
            ],
            'face2' => [
                'title' => lang('两面'),
                'games' => K3::getGames('face2'),
            ],
        ];
    }

    public static function ssc()
    {
        return [
            'face2' => [
                'title' => lang('两面'),
                'games' => Ssc::getGames('face2'),
            ],
            'position' => [
                'title' => lang('定位球'),
                'games' => Ssc::getGames('position'),
            ],
            'qzh' => [
                'title' => lang('前中后'),
                'games' => Ssc::getGames('qzh'),
            ],
            'lhd' => [
                'title' => lang('龙虎斗'),
                'games' => Ssc::getGames('lhd'),
            ],
            'bjl' => [
                'title' => lang('百家乐'),
                'games' => Ssc::getGames('bjl'),
            ],
            'dn' => [
                'title' => lang('斗牛'),
                'games' => Ssc::getGames('dn'),
            ],
        ];
    }

    public static function kl8()
    {
        return [
            'face2' => [
                'title' => lang('两面'),
                'games' => Kl8::getGames('face2'),
            ],
            'wx' => [
                'title' => lang('五行'),
                'games' => Kl8::getGames('wx'),
            ],
            'zm' => [
                'title' => lang('正码'),
                'games' => Kl8::getGames('zm'),
            ],
        ];
    }

    public static function x5()
    {
        return [
            'face2' => [
                'title' => lang('两面'),
                'games' => X5::getGames('face2'),
            ],
            'ball1' => [
                'title' => lang('第一球'),
                'games' => X5::getGames('ball1'),
            ],
            'ball2' => [
                'title' => lang('第二球'),
                'games' => X5::getGames('ball2'),
            ],
            'ball3' => [
                'title' => lang('第三球'),
                'games' => X5::getGames('ball3'),
            ],
            'ball4' => [
                'title' => lang('第四球'),
                'games' => X5::getGames('ball4'),
            ],
            'ball5' => [
                'title' => lang('第五球'),
                'games' => X5::getGames('ball5'),
            ],
        ];
    }

    public static function lhc()
    {
        return [
            'tm' => [
                'title' => lang('特码'),
                'games' => Lhc::getGames('tm'),
            ],
            'face2' => [
                'title' => lang('两面'),
                'games' => Lhc::getGames('face2'),
            ],
            'zm' => [
                'title' => lang('正码'),
                'games' => Lhc::getGames('zm'),
            ],
            'z1' => [
                'title' => lang('正1'),
                'games' => Lhc::getGames('z1'),
            ],
            'z2' => [
                'title' => lang('正2'),
                'games' => Lhc::getGames('z2'),
            ],
            'z3' => [
                'title' => lang('正3'),
                'games' => Lhc::getGames('z3'),
            ],
            'z4' => [
                'title' => lang('正4'),
                'games' => Lhc::getGames('z4'),
            ],
            'z5' => [
                'title' => lang('正5'),
                'games' => Lhc::getGames('z5'),
            ],
            'z6' => [
                'title' => lang('正6'),
                'games' => Lhc::getGames('z6'),
            ],
            'sb' => [
                'title' => lang('色波'),
                'games' => Lhc::getGames('sb'),
            ],
            'zx' => [
                'title' => lang('总肖'),
                'games' => Lhc::getGames('zx'),
            ],
            'zhengx' => [
                'title' => lang('正肖'),
                'games' => Lhc::getGames('zhengx'),
            ],
        ];
    }

    /**
     * sunice
     */
    public static function xgq()
    {
        return [
            'ball1' => [
                'title' => lang('冠军'),
                'games' => Xgq::getGames('ball1')
            ],
            'ball2' => [
                'title' => lang('亚军'),
                'games' => Xgq::getGames('ball2')
            ],
            'ball3' => [
                'title' => lang('季军'),
                'games' => Xgq::getGames('ball3')
            ],
            'ball4' => [
                'title' => lang('第四名'),
                'games' => Xgq::getGames('ball4')
            ],
            'ball5' => [
                'title' => lang('第五名'),
                'games' => Xgq::getGames('ball5')
            ],
            'ball6' => [
                'title' => lang('第六名'),
                'games' => Xgq::getGames('ball6')
            ],
            'ball7' => [
                'title' => lang('第七名'),
                'games' => Xgq::getGames('ball7')
            ],
            'ball8' => [
                'title' => lang('第八名'),
                'games' => Xgq::getGames('ball8')
            ],
            'ball9' => [
                'title' => lang('第九名'),
                'games' => Xgq::getGames('ball9')
            ],
            'ball10' => [
                'title' => lang('第十名'),
                'games' => Xgq::getGames('ball10')
            ],
            'lh' => [
                'title' => lang('龙虎'),
                'games' => Xgq::getGames('lh')
            ],
            'sum' => [
                'title' => lang('冠亚和值'),
                'games' => Xgq::getGames('sum')
            ],
            'face2' => [
                'title' => lang('大小单双'),
                'games' => Xgq::getGames('face2')
            ],
        ];
    }
    public static function amq()
    {
        return [
            'ball1' => [
                'title' => lang('冠军'),
                'games' => Amq::getGames('ball1')
            ],
            'ball2' => [
                'title' => lang('亚军'),
                'games' => Amq::getGames('ball2')
            ],
            'ball3' => [
                'title' => lang('季军'),
                'games' => Amq::getGames('ball3')
            ],
            'ball4' => [
                'title' => lang('第四名'),
                'games' => Amq::getGames('ball4')
            ],
            'ball5' => [
                'title' => lang('第五名'),
                'games' => Amq::getGames('ball5')
            ],
            'ball6' => [
                'title' => lang('第六名'),
                'games' => Amq::getGames('ball6')
            ],
            'ball7' => [
                'title' => lang('第七名'),
                'games' => Amq::getGames('ball7')
            ],
            'ball8' => [
                'title' => lang('第八名'),
                'games' => Amq::getGames('ball8')
            ],
            'ball9' => [
                'title' => lang('第九名'),
                'games' => Amq::getGames('ball9')
            ],
            'ball10' => [
                'title' => lang('第十名'),
                'games' => Amq::getGames('ball10')
            ],
            'lh' => [
                'title' => lang('龙虎'),
                'games' => Amq::getGames('lh')
            ],
            'sum' => [
                'title' => lang('冠亚和值'),
                'games' => Amq::getGames('sum')
            ],
            'face2' => [
                'title' => lang('大小单双'),
                'games' => Amq::getGames('face2')
            ],
        ];
    }
    public static function twq()
    {
        return [
            'ball1' => [
                'title' => lang('冠军'),
                'games' => Twq::getGames('ball1')
            ],
            'ball2' => [
                'title' => lang('亚军'),
                'games' => Twq::getGames('ball2')
            ],
            'ball3' => [
                'title' => lang('季军'),
                'games' => Twq::getGames('ball3')
            ],
            'ball4' => [
                'title' => lang('第四名'),
                'games' => Twq::getGames('ball4')
            ],
            'ball5' => [
                'title' => lang('第五名'),
                'games' => Twq::getGames('ball5')
            ],
            'ball6' => [
                'title' => lang('第六名'),
                'games' => Twq::getGames('ball6')
            ],
            'ball7' => [
                'title' => lang('第七名'),
                'games' => Twq::getGames('ball7')
            ],
            'ball8' => [
                'title' => lang('第八名'),
                'games' => Twq::getGames('ball8')
            ],
            'ball9' => [
                'title' => lang('第九名'),
                'games' => Twq::getGames('ball9')
            ],
            'ball10' => [
                'title' => lang('第十名'),
                'games' => Twq::getGames('ball10')
            ],
            'lh' => [
                'title' => lang('龙虎'),
                'games' => Twq::getGames('lh')
            ],
            'sum' => [
                'title' => lang('冠亚和值'),
                'games' => Twq::getGames('sum')
            ],
            'face2' => [
                'title' => lang('大小单双'),
                'games' => Twq::getGames('face2')
            ],
        ];
    }
}
